<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <ui:composition template="/template/DefaultTemplate.xhtml">
        <ui:define name="content">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form id="userView">
                     <p:messages />
                <p:panel header="Enter quotation price: " style="text-align: center">
                    <h:panelGrid columns="2" columnClasses="column" cellpadding="5"> 
                        <h:outputText value="Enter Vendor Unit Price($S):"/>
&nbsp;
                        <p:inputText value="#{rawMaterialQuotationController.price}"/>
                        <br/>

                        <p:separator/>
                        <br/>
                        <h:outputText value="Note from Vendor:"/>
                        <br/>
                        <br/>
                        &nbsp;
                        <p:inputTextarea value="#{rawMaterialQuotationController.note}"  style="width:200px;height:100px;" effectDuration="400" autoResize="false" />
                        <br/>
                        <p:separator/> 
                        <br/>
                        <h:outputText value="Total Price Including discount($S):"/>
                        &nbsp;
                        <p:inputText value="#{rawMaterialQuotationController.cost}"/>                   
                    </h:panelGrid> 
                </p:panel>

                <p:commandButton action="#{rawMaterialQuotationController.editRMQuotation}" ajax="false" value="Confirm" update="growl"/>   
                <p:commandButton  action="MaintainQuotation?faces-redirect=true" ajax="false" value="Back" update="growl"/>    
            </h:form>
        </ui:define>
    </ui:composition>

</html>